﻿using System.Linq;

namespace Yamfinder.Service
{
    public interface IUserService
    {
        bool ValidateUser(string username, string password);
        bool IsUserAdmin(string username);
        void CreateUser(string username, string password, string firstname, string lastname);
        void RemoveUser(string username);
        void CreateAdmin(string username);
        void RemoveAdmin(string username);
        void SetPassword(string username, string password);
        User GetUser(string username);
        IQueryable<User> GetUsers();
        PaginatedList<User> GetUsers(int pageIndex, int pageSize);
        bool IsFirstRun();
    }
}